package com.recruit.screen.controller;

import com.recruit.screen.core.AjaxResult;
import com.recruit.screen.core.BaseController;
import com.recruit.screen.domain.ScrProvince;
import com.recruit.screen.service.ScrProvinceService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 招聘省份
 */
@RestController
@RequestMapping("/screen/province")
@Tag(name = "招聘省份")
public class ScrProvinceController extends BaseController {

    @Autowired
    private ScrProvinceService provinceService;

    @GetMapping("/list")
    @Operation(summary = "招聘省份列表")
    public AjaxResult list() {
        List<ScrProvince> list = provinceService.selectProvinceList();
        return success(list);
    }
}
